// 项目入口文件，项目全局配置
import { createApp } from 'vue'
import { createPinia } from "pinia";
import App from './App.vue' //跟组件
import router from './router/index.js'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate)//注册持久化插件

let app = createApp(App)

app.use(router)  //路由注入
app.use(pinia);  //pinia注入
app.mount('#app')
